﻿$(document).ready(function () {
    //debugger;
    $('#txtName').attr('value', '');
    $('#txtAddr').attr('value', '');
    var oTable;
    oTable = $('#employeeTable').dataTable({
        "bInfo": false,
        "bPaginate": false,
        "bServerSide": true,
        "bDestroy": true,
        "bFilter": false,
        "bProcessing": false,
        "sAjaxSource": "/Employee/GetEmployeeDetails",
        "sServerMethod": "POST",
        "aoColumns": [
                        { "sName": "EmpId" },
                        { "sName": "EmpName" },
                        { "sName": "Address" }
    		        ]
    });
    //GetEmployeeDetails();

    $('#success-wrap').delay(10000).fadeOut('slow');

    $("input[type=reset]").click(function () {
        $('.error-wrap').hide();
        $('.success-wrap').hide();
        return true;
    });

    $('#btnSave').click(function () {
        $('#hdnBtn').val('Save');
        $('.success-wrap').show(5000);
        $('#success-wrap').delay(3000).fadeOut('slow');
        $('#frmEmployee').submit();
    });
});
function GetEmployeeDetails() {
    debugger;
    
}